from rest_framework import routers

from .views import EndpointViewSets

urlpatterns = []

router = routers.SimpleRouter()  # 最简单的一个路由
router.register("endpoint", EndpointViewSets)

# 想要被Django认可的话还要加上下面这行代码
urlpatterns += router.urls
